//
//  UINavigationController+rotate.m
//  RZIM
//
//  Created by reyzhang on 2021/8/16.
//

#import "UINavigationController+rotate.h"

@implementation UINavigationController (rotate)
-(BOOL)shouldAutorotate {
    return [self.viewControllers.lastObject shouldAutorotate];
}


-(NSUInteger)supportedInterfaceOrientations {
    return [self.viewControllers.lastObject supportedInterfaceOrientations];
}


-(UIInterfaceOrientation)preferredInterfaceOrientationForPresentation {
    return [self.viewControllers.lastObject preferredInterfaceOrientationForPresentation];
}

@end
